package com.inside.manage;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;

//@SpringBootApplication
@SpringBootApplication(scanBasePackages = {"org.jeecg.modules.jmreport"})
public class ManageApplication {

    public static void main(String[] args) {
        System.out.println("cmd中使用命令 java -jar Interview.jar yes aaa  参数列表为yes 才可以启动: " + Arrays.toString(args));
        if (args.length > 0 && "yes".equals(args[0])) {
            SpringApplication.run(ManageApplication.class, args);
        } else {
            System.out.println("未传递有效启动参数，应用未启动。");
        }
        SpringApplication.run(ManageApplication.class, args);
    }

}
